home *** CD-ROM | disk | FTP | other *** search
/ The PC-SIG Library 9 / The PC-SIG Library on CD ROM - Ninth Edition.iso / 2301_400 / DISK2382 / DISK2382.ZIP / INSTALL.BAT < prev    next >
DOS Batch File  |  1990-08-31  |  3KB  |  126 lines

  1. ECHO OFF
  2. CLS
  3. ECHO ┌────────────────────────────────────────────────┐
  4. ECHO │  Free Speech Installation and Upgrade Program  │
  5. ECHO └────────────────────────────────────────────────┘
  6. ECHO 
  7. Press  A  if you are installing Free Speech for the first time
  8. ECHO 
  9. Press  B  if you are installing Free Speech to an empty diskette
  10. ECHO 
  11. Press  C  if you are upgrading from a previous version of Free Speech
  12. ECHO 
  13. Press  D  for upgrade step two
  14. QUERY Your choice:  @CABD
  15. IF ERRORLEVEL 2 GOTO CHKA
  16. REM -----------------------------------
  17. REM - Upgrade pre-check
  18. REM -
  19. CLS
  20. ECHO Before continuing, you MUST make a back-up of your Free Speech
  21. ECHO directory.  This will preserve any changes you have made.
  22. ECHO DO NOT SKIP THIS STEP!
  23. ECHO 
  24. After you have made your backup, re-run INSTALL and select
  25. ECHO Upgrade Step Two.
  26. ECHO 
  27. NOTE:  If you will be upgrading on a hard drive, INSTALL assumes
  28. ECHO that your Free Speech files are in a directory named \FREE.  If
  29. ECHO this is not the case, please transfer the files to that directory
  30. ECHO before proceeding.
  31. ECHO 
  32. During the copying of the files, you will be asked for permission
  33. ECHO to copy over existing files.  Since you've made a back-up, it will
  34. ECHO be safe to answer "Yes" each time.
  35. QUERY Press the spacebar to continue ... @ X
  36. GOTO QUIT
  37. REM -----------------------------------
  38. REM - Check diskette address
  39. REM -
  40. :CHKA
  41. CLS
  42. ECHO Press  A  if the Free Speech install diskette is in the A: drive
  43. ECHO 
  44. Press  B  if the Free Speech install diskette is in the B: drive
  45. QUERY Your choice:  @AB
  46. SET FQF=B
  47. SET FQT=A
  48. IF ERRORLEVEL 2 GOTO INA
  49. SET FQF=A
  50. SET FQT=B
  51. REM -----------------------------------
  52. REM - Get type of installation
  53. REM -
  54. :INA
  55. CLS
  56. ECHO Press  %FQT%  if you are installing to the %FQT%: diskette drive
  57. ECHO 
  58. Press  C  if you are installing to the C: hard drive
  59. ECHO 
  60. Press  D  if you are installing to the D: hard drive
  61. ECHO 
  62. Press  E  if you are installing to the E: hard drive
  63. ECHO 
  64. Press  Q  if you want to quit
  65. QUERY Your choice (%FQF% C D E Q):  @%FQF%CDEQ
  66. IF ERRORLEVEL 5 GOTO QUIT
  67. IF ERRORLEVEL 4 GOTO SETE
  68. IF ERRORLEVEL 3 GOTO SETD
  69. IF ERRORLEVEL 2 GOTO SETC
  70. REM -----------------------------------
  71. REM - Floppy installation
  72. REM -
  73. CLS
  74. ECHO Place a pre-formatted diskette in the %FQT%: drive, then press the spacebar or...
  75. QUERY Press Q to Quit  @ Q
  76. IF ERRORLEVEL 2 GOTO QUIT
  77. %FQT%:
  78. GOTO WRAPUP
  79. REM -----------------------------------
  80. REM - E Drive setup
  81. REM -
  82. :SETE
  83. E:
  84. GOTO HARD
  85. REM -----------------------------------
  86. REM - D Drive setup
  87. REM -
  88. :SETD
  89. D:
  90. GOTO HARD
  91. REM -----------------------------------
  92. REM - C Drive setup
  93. REM -
  94. :SETC
  95. C:
  96. GOTO HARD
  97. REM -----------------------------------
  98. REM - Hard drive installation
  99. REM -
  100. :HARD
  101. CD \
  102. IF NOT EXIST \FREE\*.* MD FREE
  103. CD FREE
  104. REM -----------------------------------
  105. REM - Wrap-up
  106. REM -
  107. :WRAPUP
  108. CLS
  109. ECHO Unpacking program and data files...
  110.  
  111. %FQF%:PKUNZIP %FQF%:*.ZIP
  112. CLS
  113. ECHO 
  114. We will now run a program named HELPME, which will
  115. ECHO explain what Free Speech is all about.  HELPME can 
  116. ECHO also display or print the user manual, or help you
  117. ECHO fill out a customer reply form.
  118. QUERY Press the spacebar to continue...  @ X
  119. HELPME
  120. REM -----------------------------------
  121. REM - Los Endos
  122. REM -
  123. :QUIT
  124. SET FQT=
  125. SET FQF=
  126.